package com.slwu.configure;

public class RedisKey {
    /**
     * token key
     */
    public static String TOKEN_KEY = "slwu:token";

    public static final String TOKEN = "token";
    public static final String TOKEN_HIERARCHY = ":";
    public static final String TOKEN_WILDCARD = "*";


    public static String redisKeyGenerator(String prefix, Object... arg) {
        StringBuilder result = new StringBuilder("SLWU:" + prefix);

        for (Object suffix : arg) {
            result.append("_").append(suffix);
        }

        return result.toString();
    }
}
